package com.wf.dao.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import org.springframework.data.annotation.Id;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;

@Data
public class Article {

    public static final int Article_TOP = 1;
    public static final int Article_Common = 0;
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String title;
    private String summary;
    private Integer commentCounts;
    private Integer viewCounts;

    /**
     * 作者id
     */
    private Integer authorId;
    /**
     * 内容id
     */
    private Integer bodyId;
    /**
     *类别id
     */
    private Integer categoryId;

    /**
     * 置顶
     */
    private Integer weight;


    /**
     * 创建时间
     */
    private Long createDate;
}